#include<stdio.h>
void main()
{
     int i;

	 int n = 1;
	 
	 long int s = 1;

	 for(i = 1;i <= 10;i++)
	 {
	     n = n*i;
		 s = s + n;
	 }

	 printf("%ld \n",s);
}